{
    "format_version": "1.19.10",
    "minecraft:entity": {
        "description": {
            "identifier": "runeforge:arrow_rain",
            "is_spawnable": false,
            "is_summonable": true,
            "is_experimental": false,
            "runtime_identifier": "minecraft:snowball"
        },
        "component_groups": {
            "cg:despawn": {
                "minecraft:instant_despawn": {
                    "remove_child_entities": false
                }
            }
        },
        "components": {
            "minecraft:collision_box": {
                "width": 0.15,
                "height": 0.15
            },
            "minecraft:conditional_bandwidth_optimization": {
                "default_values": {
                    "max_optimized_distance": 100.0,
                    "max_dropped_ticks": 10,
                    "use_motion_prediction_hints": true
                }
            },
            "minecraft:physics": {},
            "minecraft:timer": {
                "time": 2.5,
                "looping": false,
                "time_down_event": {
                    "event": "runeforge:maxrange",
                    "target": "self"
                }
            },
            "minecraft:projectile": {
                "on_hit": {
                    "definition_event": {
                        "affect_projectile": true,
                        "event_trigger": {
                            "event": "runeforge:spellhit",
                            "target": "self"
                        }
                    },
                    "impact_damage": {
                        "damage": [
                            1,
                            3
                        ],
                        "knockback": false
                    }
                },
                "anchor": 1,
                "power": 1.5,
                "gravity": 0,
                "inertia": 0.99,
                "liquid_inertia": 0.7,
                "angle_offset": 0,
                "offset": [0,0.2,0]
            },
            "minecraft:pushable": {
                "is_pushable": false,
                "is_pushable_by_piston": true
            }
        },
        "events": {
            "runeforge:maxrange": {
                "sequence": [
                    {
                        "add": {
                            "component_groups": [
                                "cg:despawn"
                            ]
                        }
                    }
                ]
            },
            "runeforge:spellhit": {
                "sequence": [
                    {
                        "queue_command": {
                            "command": "structure load mystructure:arrow_rain ~ ~10 ~ "
                        }
                    },
                    {
                        "add": {
                            "component_groups": [
                                "cg:despawn"
                            ]
                        }
                    }
                ]
            }
        }
    }
}